<?php

	/**
	 * @see Bike_Js_Ext_Obj
	 */
	require_once 'Bike/Js/Ext/Obj.php';
	
	
	class Bike_Js_Ext_Tip_QuickTip extends Bike_Js_Ext_Obj
	{
		protected function initDefaultSettings()
		{
			parent::initDefaultSettings();
		
			$js = $this->js();
			$this->setSettings(array(
				'minWidth' => 100,
				'trackMouse' => True,
				'width' => 'auto',
			));
		}

		public function _toString()
		{
			if($this->getTooltipType() == 'title')
			{
				return '"<b>'.$this->title.'</b>'.($this->text ? '<br />'.$this->text : '').'"';
			}
			return parent::_toString();
		}
	}
